﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>SMTP邮件发送测试</title>
    <meta name="keywords" content="smtp smtpclient mail email send email 邮件 SMTP服务器 SMTP客户端 SMTP发送邮件" />
    <meta name="description" content="一个用于测试SMTP发送邮件的程序。" />
</head>
<body>
<script type="text/javascript"><!--
google_ad_client = "pub-0410788977836329";
/* 728x90, 创建于 08-7-26 */
google_ad_slot = "4312314959";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

    <form id="form1" runat="server">
    <p><asp:Label ID="lblMsg" runat="server"></asp:Label></p>
    <p>SMTP Settings:</p>
    <table>
		<tr><td>Host:</td><td><asp:TextBox ID="txtHost" runat="server"></asp:TextBox></td></tr>
		<tr><td>Port:</td><td><asp:TextBox ID="txtPort" runat="server" Text="25"></asp:TextBox></td></tr>
		<tr><td colspan="2"><asp:CheckBox ID="chkEnabledSsl" runat="server" Text="Enable SSL" /></td></tr>
		<tr><td>User Name:</td><td><asp:TextBox ID="txtUserName" runat="server"></asp:TextBox></td></tr>
		<tr><td>Password:</td><td><asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox></td></tr>
		<tr><td>Mail Address:</td><td><asp:TextBox ID="txtAddress" runat="server"></asp:TextBox></td></tr>
		<tr><td>Diaplay Name:</td><td><asp:TextBox ID="txtDisplayName" runat="server"></asp:TextBox></td></tr>
		<tr><td>Encoding:</td><td><asp:TextBox ID="txtEncoding" runat="server" Text="UTF-8"></asp:TextBox></td></tr>
    </table>
    <p>Mail Message:</p>
    <table>
		<tr><td>Subject:</td><td><asp:TextBox ID="txtSubject" runat="server" Text="Test测试"></asp:TextBox></td></tr>
		<tr><td>To:</td><td><asp:TextBox ID="txtTo" runat="server"></asp:TextBox></td></tr>
		<tr><td>Body:</td><td><asp:TextBox ID="txtBody" runat="server" TextMode="MultiLine"></asp:TextBox></td></tr>
    </table>
    <asp:Button ID="btnSend" runat="server" Text="Send" onclick="btnSend_Click" />
    </form>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-2611725-3");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</body>
</html>
